package com.demo.rabbitmq.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yexi
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Entity implements Serializable {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 描述
     */
    private String description;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 创建时间
     */
    private Date createTime;

    public Entity(Long id, String description) {
        this.id = id;
        this.description = description;
    }

    public Entity(Long id, Integer type) {
        this.id = id;
        this.type = type;
    }

    public Entity(Long id, Date createTime) {
        this.id = id;
        this.createTime = createTime;
    }

    public Entity(Long id, String description, Date createTime) {
        this.id = id;
        this.description = description;
        this.createTime = createTime;
    }

    public Entity(Long id) {
        this.id = id;
    }

}